// +---------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +---------------------------------------------------------------------
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------

import BasicLayout from '@/components/main';

const pre = 'platform_';

export default {
  path: '/admin/platform',
  name: 'platform',
  header: 'platform',
  redirect: {
    name: `${pre}goods`,
  },
  component: BasicLayout,
  children: [
    {
      path: 'goods',
      name: `${pre}goods`,
      meta: {
        auth: ['admin-platform-goods'],
        title: '物品分类',
      },
      component: () => import('@/pages/platform/goods/index'),
    },
	{
	  path: 'remarks',
	  name: `${pre}remarks`,
	  meta: {
	    auth: ['admin-platform-remarks'],
	    title: '备注管理',
	  },
	  component: () => import('@/pages/platform/remarks/index'),
	},
	{
	  path: 'banner',
	  name: `${pre}banner`,
	  meta: {
	    auth: ['admin-platform-banner'],
	    title: '轮播管理',
	  },
	  component: () => import('@/pages/platform/banner/index'),
	},
	{
	  path: 'ads',
	  name: `${pre}ads`,
	  meta: {
	    auth: ['admin-platform-ads'],
	    title: '广告管理',
	  },
	  component: () => import('@/pages/platform/ads/index'),
	},
	{
	  path: 'feedback',
	  name: `${pre}feedback`,
	  meta: {
	    auth: ['admin-platform-feedback'],
	    title: '广告管理',
	  },
	  component: () => import('@/pages/platform/feedback/index'),
	},
	{
	  path: 'carcate',
	  name: `${pre}carcate`,
	  meta: {
	    auth: ['admin-platform-carcate'],
	    title: '车型管理',
	  },
	  component: () => import('@/pages/platform/carcate/index'), 
	},
	{
	  path: 'carlen',
	  name: `${pre}carlen`,
	  meta: {
	    auth: ['admin-platform-carlen'],
	    title: '车长管理',
	  },
	  component: () => import('@/pages/platform/carlen/index'), 
	},
	{
	  path: 'setting',
	  name: `${pre}setting`,
	  meta: {
	    auth: ['admin-platform-setting'],
	    title: '平台设置',
	  },
	  component: () => import('@/pages/platform/setting/index'), 
	}
  ],
};
